/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package k3tool.tinyex.filter;

import nu.xom.DocType;
import nu.xom.Document;
import nu.xom.Element;

/**
 *
 * @author Jeff Huang
 */
public abstract class XHtmlConstants {
    public static final String namespace = "http://www.w3.org/1999/xhtml";
    //public static final DocType docType =

    public static DocType createXHtmlDocType() {
        return new DocType("html", "-//W3C//DTD XHTML 1.1//EN",
            "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd");
    }
    public static Document createXHtmlDocument(){
        Element root = new Element("html", namespace);
        Document doc = new Document(root);
        doc.insertChild(createXHtmlDocType(), 0);
        return doc;
    }
}
